window.helper = window.helper || {};
// 身份类型
window.helper.cardType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "1" :
                return "港澳通行证"
            case "2" :
                return "台湾身份证"
            case "3" :
                return "护照"
            case "4" :
                return "身份证"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: '1',
                label: '港澳通行证'
            }, {
                value: '2',
                label: '台湾身份证'
            },  {
                value: '3',
                label: '护照'
            },  {
                value: '4',
                label: '身份证'
            }
        ]
    }
};
//用户关注点
window.helper.userFocus = function (e){
    switch(e){
        case '1' :
            return "效果"
        case '1#2' :
            return "效果 价格"
        case '1#2#3' :
            return "效果 价格 环境"
        case '1#2#3#4' :
            return "效果 价格 环境 服务"
        default: 
            return "暂无"
    }
};
//账户类型
window.helper.accountType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "1" :
                return "普通"
            case "2" :
                return "员工"
            case "3" :
                return "特批"
            case "4" :
                return "试用"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: '1',
                label: '普通'
            }, {
                value: '2',
                label: '员工'
            },  {
                value: '3',
                label: '特批'
            },  {
                value: '4',
                label: '试用'
            }
        ]
    }
};
//服务商级别
window.helper.roleFn = function (e){
    if(e!="listReturn"){
        switch(e){
            case "2" :
                return "美学设计师"
            case "3" :
                return "高级美学设计师"
            case "7" :
                return "总监"
            case "8" :
                return "总经理"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: '2',
                label: '美学设计师'
            }, {
                value: '3',
                label: '高级美学设计师'
            },  {
                value: '7',
                label: '总监'
            },  {
                value: '8',
                label: '总经理'
            }
        ]
    }
}
//项目类型
window.helper.cateType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "0" :
                return "医美"
            case "1" :
                return "口腔管理"
            case "2" :
                return "健康管理"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 0,
                label: '医美'
            }, {
                value: 1,
                label: '口腔管理'
            }, {
                value: 2,
                label: '健康管理'
        }]
    }
};
// 支付状态
window.helper.payStatusType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "1" :
                return "已支付"
            case "2" :
                return "未支付"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 1,
                label: '已支付'
            }, {
                value: 2,
                label: '未支付'
        }]
    }
};
// 审核状态
window.helper.handleStatusType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "0" :
                return "未审核"
            case "1" :
                return "审核成功"
            case "2" :
                return "审核失败"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 0,
                label: '未审核'
            }, {
                value: 1,
                label: '审核成功'
            }, {
                value: 2,
                label: '审核失败'
        }]
    }
};
// 预约单类型
window.helper.orderProjectType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "0" :
                return "未知"
            case "1" :
                return "首次咨询"
            case "2" :
                return "复诊"
            case "3" :
                return "签订合同"
            case "4" :
                return "进行医美项目"
            case "5" :
                return "其他"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 0,
                label: '未知'
            }, {
                value: 1,
                label: '首次咨询'
            }, {
                value: 2,
                label: '复诊'
            }, {
                value: 3,
                label: '签订合同'
            }, {
                value: 4,
                label: '进行医美项目'
            }, {
                value: 5,
                label: '其他'
        }]
    }
};
// 预约单支付状态
window.helper.orderPayStatus = function (e){
    if(e!="listReturn"){
        switch(e){
            case "1" :
                return "未支付"
            case "2" :
                return "支付成功"
            case "3" :
                return "已退款"
            case "4" :
                return "退款失败"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 1,
                label: '未支付'
            }, {
                value: 2,
                label: '支付成功'
            }, {
                value: 3,
                label: '已退款'
            }, {
                value: 4,
                label: '退款失败'
        }]
    }
};
// 预约单状态
window.helper.orderStatusType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "1" :
                return "正在预约中"
            case "2" :
                return "关闭预约"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 1,
                label: '正在预约中'
            }, {
                value: 2,
                label: '关闭预约'
            }]
    }
};
// 预约单来源
window.helper.orderType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "1" :
                return "app"
            case "2" :
                return "服务商小程序"
            case "3" :
                return "主小程序"
            case "4" :
                return "app限时抢购（全额支付）"
            case "5" :
                return "主小程序显示抢购（全额支付）"
            case "6" :
                return "项目价购买，积分可抵"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: 1,
                label: 'app'
            }, {
                value: 2,
                label: '服务商小程序'
            }, {
                value: 3,
                label: '主小程序'
            }, {
                value: 4,
                label: 'app限时抢购（全额支付）'
            }, {
                value: 5,
                label: '主小程序显示抢购（全额支付）'
            }, {
                value: 6,
                label: '项目价购买，积分可抵'
            }]
    }
};
// 补贴单审核状态
window.helper.applyStatus = function (e){
    if(e!="listReturn"){
        switch(e){
            case "0" :
                return "未审核"
            case "1" :
                return "复审通过"
            case "3" :
                return "初审通过"
            case "4" :
                return "未签名"
            case "10" :
                return "初审驳回"
            case "11" :
                return "复审驳回"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: "0",
                label: '未审核'
            }, {
                value: "1",
                label: '复审通过'
            }, {
                value: "3",
                label: '初审通过'
            }, {
                value: "4",
                label: '未签名'
            }, {
                value: "10",
                label: '初审驳回'
            }, {
                value: "11",
                label: '复审驳回'
        }]
    }
};
// 补贴单补贴类型
window.helper.allowanceType = function (e){
    if(e!="listReturn"){
        switch(e){
            case "0" :
                return "未知"
            case "1" :
                return "可提现积分"
            case "2" :
                return "消费积分"
            case "3" :
                return "可提现积分+消费积分"
            default: 
                return "暂无"
        }
    }else{
        return [{
                value: "0",
                label: '未知'
            }, {
                value: "1",
                label: '可提现积分'
            }, {
                value: "2",
                label: '消费积分'
            }, {
                value: "3",
                label: '可提现积分+消费积分'
            }]
    }
};